import request from '@/js/ajax'


export function loginIn(account, password) {
    return request({
        url: 'http://www.rhyun.top:8080/doLogin/loginIn',
        method: 'get',
        params: {account, password}

    })
}

export function getVerificationCode(telephone, tenantId) {
    return request({
        url: 'http://www.rhyun.top:8080/doLogin/getVerificationCode',
        method: 'get',
        params: {telephone, tenantId}

    })
}

export function register(userName, telephone, password, tenantId) {
    return request({
        url: 'http://www.rhyun.top:8080/doLogin/register',
        method: 'get',
        params: {userName, telephone, password, tenantId}

    })
}

//忘记密码
export function changePassword(telephone, password, authCode) {
    return request({
        url: 'http://www.rhyun.top:8080/doLogin/changePassword',
        method: 'get',
        params: {telephone, password, authCode}

    })
}

export function updatePassword(userId, oldPassWord, password) {
    return request({
        url: 'http://www.rhyun.top:8080/doLogin/updatePassword',
        method: 'get',
        params: {userId, oldPassWord, password}

    })
}















